/*
menu_add_option();
*/
var menu;
if (ds_grid_value_exists(global.menu_index,0,0,4,ds_grid_height(global.menu_index),argument0))
{
menu = ds_grid_value_y(global.menu_index,0,0,4,ds_grid_height(global.menu_index),argument0);
ds_map_add(ds_grid_get(global.menu_index,3,menu),argument1,argument2);
ds_list_add(ds_grid_get(global.menu_index,4,menu), argument1);
}
else
{
show_debug_message("Trying to add options to a non-existent menu. Option: "+string(argument0));
}
